/*
 * 英才汇硕信息科技有限公司 拥有本软件版权 2021 并保留所有权利。
 * Copyright 2021, YCHS Information&Science Techology Co.,Ltd,
 * All right reserved.
 */
package com.ychs.lawyerback.mapper;

import com.ychs.lawyerback.dto.ContractQueryDTO;
import com.ychs.lawyerback.pojo.ContractEntity;
import com.ychs.lawyerback.vo.ContractQueryVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author mayujing
 * @version 1.0
 */
@Mapper
public interface ContractMapper {

    /**
     * 查询符合条件的合同总条数
     * @param contractQueryDTO
     * @return 合同VO列表
     */
    List<ContractQueryVo> getContractsByCondition(ContractQueryDTO contractQueryDTO);

    int addContract(ContractEntity contractEntity);

    int editContract(ContractEntity contractEntity);

    int changeContractActive(ContractEntity contractEntity);

    int getCountByCondition(ContractQueryDTO contractQueryDTO);
}
